/* Hawk - A Component Based Test Framework
 *
 * Copyright (C) 2010 http://code.google.com/p/hawk-framework/
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License. 
 */
package org.hawk.applications.finder.swing.gui;

import java.awt.Container;

import javax.swing.JComponent;
import javax.swing.JFrame;
import javax.swing.JTabbedPane;

/**
 * People Finder Main window
 * 
 * @author Rodrigo Prestes Machado
 */
@SuppressWarnings("serial")
public class Window extends JFrame {

	public Window(){
		
		// system title
		super("People Finder");
		
		// creating tabs
		JTabbedPane tab = new JTabbedPane();
		
		JComponent tabProfile = new TabProfile();
		tab.addTab("Profile", null, tabProfile, "Profile");
		
		JComponent tabSearch = new TabSearch();
		tab.addTab("Search", null, tabSearch, "Search");
		
		// put the tabs on window
		Container container = getContentPane();
		container.add(tab);
		
		// setting the window
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setSize(200, 300);
		setVisible(true);
	}
	
	/**
	 * Main method
	 * 
	 * @param args
	 */
	public static void main(String[] args){
		@SuppressWarnings("unused")
		Window w = new Window();	
	}
}